import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import Manager from "../components/Manager";
import stuList from "../components/stu/stuList";
import stu_rec from "../components/stu/stu_rec";
import recordList from "../components/stu/recordList";
import addRecord from "../components/stu/addRecord";
import update from "../components/stu/update";
import zhuxiao from "../components/stu/zhuxiao";



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Loin',
      component: Login
    },
    {
      path:"/manager",
      name: 'Manager',
      component:Manager,
      children:[
        { path: "/manager/stu",
          name: "manager/stu",
          component: stuList,
          children:[
            {path: "/manager/stu/rec",
            name:"/manager/stu/rec",
            component: stu_rec
            }
          ]
        },{
          path: "/manager/record",
          name:"manager/record",
          component:recordList
        },
        {
          path: "/manager/addRecord",
          name:"manager/add",
          component:addRecord
        },{
          path: "/manager/update",
          name:"manager/update",
          component:update
        },{
          path: "/manager/zhuxiao",
          name:"manager/zhuxiao",
          component:zhuxiao
        }
        ]
    }
  ]
})
